<form class="form-horizontal">
    <div class="form-group">
        <label class="col-sm-2 control-label">客户名称</label>
        <div class="col-sm-10" id="customerName1234">
        </div>
    </div>

</form>
<script type="text/html" id="customer">
    {{each data}}
    <input type="radio" name="customerName" value="{{$value.name}}" unchecked>{{$value.name}}</input>
    {{/each}}
</script>
<script>
    $(function () {
        Ajax.get(
            "selectAllCustomerForPo",
            {},
            function (result) {
                var div=document.getElementById("customerName1234")
                var data=result.data;
                var html=template("customer",result)
                div.innerHTML=html
            }
        )
    })
</script>
